package com.briup.jd2407cms.web.controller;

import com.briup.jd2407cms.aop.Logging;
import com.briup.jd2407cms.service.RoleService;
import com.briup.jd2407cms.util.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: JD2407-cms
 * @BelongsPackage: com.briup.jd2407cms.web.controller
 * @Author: 鲨鲨天下第一
 * @CreateTime: 2024-11-20  11:53
 * @Description: TODO
 * @Version: 1.0
 */
@Api(tags = "角色模块")
@Slf4j
@RestController
@RequestMapping("/auth/role")
public class RoleController {
    @Autowired
    private RoleService roleService;

    @ApiOperation("查询所有的角色信息")
    @Logging("查询所有的角色信息")
    @RequestMapping("/getAll")
    public Result getAll() {
        return Result.success(roleService.list());
    }
}
